Example
You will find an example scanner application in the clamav sources (/example). Remember that all programs based on libclamav must be linked against it:
gcc -Wall ex1.c -o ex1 -lclamav